package com.es.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import java.util.Map;

@ConfigurationProperties(prefix = "es")
@EnableConfigurationProperties(EsProperties.class)
@Data
public class EsProperties {
    private String host;
    private Map<String,String> indexNames;
}
